#ifndef CONFIG_H
#define CONFIG_H

#include <QtWidgets>
#include <QWidget>
#include <QObject>
#include <QGraphicsPixmapItem> // 2D场景贴图项
#include <QKeyEvent> // 键盘事件
#include <QTimer>
#include <QIcon>
#include <QDir>
#include <QProgressBar>
#include <QPushButton>
#include <QLabel>
#include <QPixmap>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QDebug>
#include <QString>

#define BUTTON_STYLE "\
QPushButton{\
    color:#000000;\
    font-size : 25px;\
    border-radius:10px;\
    border:1px solid #AAAAAA;\
    background-color:#FFFFFF;\
}\
QPushButton:pressed{\
    color:#FFFFFF;\
    background-color:#AAAAAA;\
}\
"


/*****************游戏配置*****************/
// 主界面窗口
#define MAIN_WIDTH                                540
#define MAIN_HEIGHT                                      717
#define MAIN_BACKGROUND       ":/picture/mainweightimage.jpg"
#define MAIN_TITLE                       "雷霆战机 v1.5"  //标题
// 游戏窗口
#define GAME_WIDTH                     800     //宽度
#define GAME_HEIGHT                      1000   //高度
#define GAME_TITLE                       "雷霆战机"  //标题
#define GAME_ICON                     ":/picture/apppicture.png" //图标路径

// 飞机数据
#define PLANE_WIDTH     128     //宽
#define PLANE_HEIGHT        104    //高
#define PLANE_X                274         //横坐标
#define PLANE_Y                   896         //纵坐标
#define PLANE_SPEED         12       //移动单位速度
#define PLANE_PATH_1                 ":/picture/smallPlane5.png"
#define PLANE_PATH_2                 ":/picture/smallPlane2.png"
#define PLANE_PATH_3                 ":/picture/smallPlane9.png"

// 地图资源加载
#define MAP_PATH_1                   ":/picture/background1.JPG" //地图路径
#define MAP_PATH_2                 ":/picture/background2.jpg" //地图路径
#define MAP_PATH_3                   ":/picture/background5.JPG" //地图路径
#define MAP_SCROLL_SPEED                         2 //地图滚动速度

// 子弹数据
#define BULLET_PATH             ":/picture/bullet_girl_2_level_1.png"//子弹路径
#define BULLET_WIDTH               14 //宽度
#define BULLET_HEIGHT               80 //长度
#define BULLET_SPEED               20  //子弹移动单位速度
#define BULLET_NUM                      20 // 弹夹数量
#define BULLET_INTERVAL          500 //子弹发射间隔

// 敌机数据
#define ENEMY_WIDTH                      100
#define ENEMY_HEIGHT                 80
#define ENEMY_SPEED                      8
#define ENEMY_PATH                ":/picture/smallPlane6.png" //敌机贴图路径

#define ENEMY_DAMAGE      20 // 敌机攻击力

#define BOMB_PATH_1  ":/picture/bomb-1.png"

#endif // CONFIG_H
